﻿// radio的勾选
var male = document.getElementById("male") as HTMLInputElement;
male.checked = true;

// checkbox的勾选
var male = document.getElementById("sportId") as HTMLInputElement;
male.checked = true;

// select单选下拉框

var city = document.getElementById("selectId") as HTMLInputElement;
city.value = 'cp'

// 文本框输入

var city = document.getElementById("textId") as HTMLInputElement;
city.value = 'text'